package com.hkts.beltweigher.master.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hkts.beltweigher.master.entity.YbClassesAccumulate;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hkts.beltweigher.master.entity.YbHourAccumulate;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.text.ParseException;
import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author hml
 * @since 2024-04-10
 */
public interface IYbClassesAccumulateService extends IService<YbClassesAccumulate> {

    /**
     * 分页查询
     *
     * @param bootStrapTable
     * @param ybClassesAccumulate
     * @return
     */
    IPage<YbClassesAccumulate> selectPage(Page<YbClassesAccumulate> page, YbClassesAccumulate ybClassesAccumulate);

    List<YbClassesAccumulate> selectList(YbClassesAccumulate ybClassesAccumulate);

    YbClassesAccumulate selectYbClassAccumulate();

    Object reportStatistics(String startDate, String endDate) throws ParseException;

    void exportReport(String startDate, String endDate,String classes, HttpServletResponse response) throws ParseException, IOException;
}